package com.kele.base.common.constant;

import com.kele.base.common.constant.farme.IDictItem;

import java.util.Arrays;

/**
 * @Description:
 * @Author: Kele
 * @CreateDate: 2023/4/22 20:41
 * @Version:
 */
public interface Auth {

    // 课程发布状态
    enum AuthType implements IDictItem {
        PASSWORD("password", "密码认证"),
        WECHAT("wx", "微信认证")
        ;

        AuthType(String value, String label) {
            putItemBean(value, label);
        }

        public static boolean isInclude(String value){
            for (AuthType authType : values()) {
                if (authType.value().equals(value)){
                    return true;
                }
            }
            return false;
        }
    }
}
